package MyLinkedList;

public class Main {
    public static void main(String[] args) {
        MyLinkedList myLinkedList = new MyLinkedList();
        myLinkedList.addFirst(2);
        myLinkedList.addFirst(0);
        myLinkedList.addFirst(4);
        myLinkedList.addFirst(0);
        myLinkedList.addFirst(6);
        myLinkedList.addFirst(0);
        myLinkedList.addFirst(0);
        myLinkedList.addFirst(2);
        System.out.println(myLinkedList.size());
        myLinkedList.display();
        System.out.println("=============");
        myLinkedList.addLast(2);
        myLinkedList.addLast(0);
        myLinkedList.addLast(0);
        myLinkedList.addLast(5);
        myLinkedList.addLast(0);
        myLinkedList.addLast(7);
        myLinkedList.addLast(2);
        myLinkedList.addLast(6);
        System.out.println(myLinkedList.size());
        myLinkedList.display();
        System.out.println("==================");
        myLinkedList.addIndex(8,11);
        myLinkedList.display();
        System.out.println("==============");
        myLinkedList.remove(11);
        myLinkedList.display();
        myLinkedList.removeAllKey(0);
        myLinkedList.display();
        System.out.println("===========");
        myLinkedList.clear();
        myLinkedList.display();
    }
}
